package com.pmsystem.dao;

import com.pmsystem.pojo.CleanArea;
import com.pmsystem.pojo.CleanAreaExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PatchMapping;


public interface CleanAreaMapper {
    long countByExample(CleanAreaExample example);

    int deleteByExample(CleanAreaExample example);

    int deleteByPrimaryKey(Integer cleanAreaId);

    int insert(CleanArea record);

    int insertSelective(CleanArea record);

    List<CleanArea> selectByExample(CleanAreaExample example);

    CleanArea selectByPrimaryKey(Integer cleanAreaId);

    int updateByExampleSelective(@Param("record") CleanArea record, @Param("example") CleanAreaExample example);

    int updateByExample(@Param("record") CleanArea record, @Param("example") CleanAreaExample example);

    int updateByPrimaryKeySelective(CleanArea record);

    int updateByPrimaryKey(CleanArea record);

	/**  
	 * <p>Title: selectAreaCount</p >  
	 * <p>Description: 查询保洁区域数据条数</p >  
	 * @author 魏家洛
	 * @return  
	 */  
	int selectAreaCount(@Param("condition") String condition);

	/**  
	 * <p>Title: selectAreaPage</p >  
	 * <p>Description: 查询对应分页保洁区域数据</p >  
	 * @author 魏家洛
	 * @param start
	 * @param pageSize
	 * @return  
	 */  
	List<CleanArea> selectAreaPage(@Param("start") int start, @Param("pageSize") Integer pageSize,@Param("condition")String condition);

	/**  
	 * <p>Title: deleteAreaById</p >  
	 * <p>Description:删除id对应保洁区域数据</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	int deleteAreaById(Integer id);

	/**  
	 * <p>Title: selectAreaById</p >  
	 * <p>Description:查询id对应保洁区域</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	CleanArea selectAreaById(Integer id);

	/**  
	 * <p>Title: updateAreaByArea</p >  
	 * <p>Description:更新保洁区域数据</p >  
	 * @author 魏家洛
	 * @param cleanArea
	 * @return  
	 */  
	int updateAreaByArea(CleanArea cleanArea);

	/**  
	 * <p>Title: addArea</p >  
	 * <p>Description:添加保洁区域数据</p >  
	 * @author 魏家洛
	 * @param cleanAreaName
	 * @return  
	 */  
	int addArea(String cleanAreaName);


   
}